<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
  </head>
  <body>
    <div id="app">
         <h1>{{msg.split("").reverse().join()}}</h1>
         <h2>{{num*2}}</h2>
         <h3>{{age>=18? "可以上网吧":"不可以去网吧"}}</h3>
         <h4 @click="pulickBack()">指令系统</h4>
         <!-- 自加自减都不可以 -->
         <!-- <h4>{{num++}}</h4> -->
    </div>
    <script src="https://cdn.jsdelivr.net/npm/vue@2.7.14/dist/vue.js"></script>
    <script>
        let vm = new Vue({
            el:"#app",
            data:{
                msg:"灰色头像",
                num:50,
                age:20
            },
            methods:{
                pulickBack(){
                    console.log("简单的过一遍");
                }
            }
        })
    </script>
  </body>
</html>
